-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supports automatic calling of APIs conforming to the OpenAPI specification. #548
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yiyiyi0817's great contribution and sorry for the late review, left some comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your review. Some reply.
Hey @yiyiyi0817 , thanks for your reply, please feel free to update the code based on our discussion above, then it LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for review. leave a little explanation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @yiyiyi0817 ! LGTM
Description
This PR introduces a significant feature enhancement to the CAMEL project by enabling automatic calling of APIs that comply with the OpenAPI Specification (OAS). This update adds support for Klarna, Coursera, and Speak APIs, broadening the scope of external integrations available within the CAMEL ecosystem.
To facilitate these integrations, the project now includes a generic function that dynamically handles requests to any API defined by an OpenAPI spec. This means contributors can easily extend the project's capabilities by integrating with various services that expose their APIs with an OpenAPI document.
Motivation and Context
The OpenAPI Specification offers a widely adopted standard for describing RESTful APIs, making it easier to integrate disparate systems.
Types of changes
Implemented Tasks
Generic OpenAPI Integration Function:
A new utility function has been introduced, capable of dynamically generating requests to APIs based on their OpenAPI specifications, along with schemas required by OpenAI. Please note, the current version does not support APIs requiring security authentication.
Klarna API Integration:
Implemented integration with Klarna's payment API, enabling users to search goods.
Coursera API Integration:
Added support for accessing Coursera's educational content API, allowing users to retrieve course information, enrollments, and other educational resources.
Speak API Integration:
Incorporated the Speak API for advanced natural language processing, offering capabilities such as translation, language explaination.
Checklist
Go over all the following points, and put an
x
in all the boxes that apply.